//
//  ZLRSegmentControl.h
//  feng
//
//  Created by 张领瑞 on 2017/9/11.
//  Copyright © 2017年 ShiFeiEr. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol  ZLRSegmentControlDelegate<NSObject>

-(void)didSelectedAtIndext:(NSInteger)index;

@end


@interface ZLRSegmentControl : UIView
@property (nonatomic,strong)NSArray *titlesArray;
@property (nonatomic,weak)id<ZLRSegmentControlDelegate>delegate;//delegate
-(void)setSelectedAtIndex:(NSInteger)index; //设置选择按钮
-(int)currentSelectedAtIndex;//当前选择
-(instancetype)initWithFrame:(CGRect)frame titileArray:(NSArray *)array; //主题
@end
